<template>
	<view>
		<u-textarea v-model="value" placeholder="请输入内容" ></u-textarea>
		<view name="底部按钮" style="margin: 20px 10px 0px 10px;" >
			<u-button type="primary" text="确定" @click="confirm"></u-button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				value:"",
				name:"",//参数所属值，用于返回处理
			}
		},
		onLoad(options){
			console.log("接收参数data====>",options.data);
			this.value = (options.data == null?"":options.data);
			this.name = (options.name == null?"":options.name);
		},
		onShow() {
			
		},
		methods:{
			//确定返回上一层
			confirm(){
				uni.$emit('emitParams',{value:this.value,name:this.name});
				uni.navigateBack({
				    delta: 1 // 返回的页面数，如果 delta 大于现有页面数，则返回到首页
				});
			},
		},
	}
</script>

<style>
</style>